import http from '../utils/request'

export const getQuestion = () => {
  return http.get('/question/twoQuestion')
}

export const queryAnswer = (params)=>{
  return http.post('/answer/two',params)
}

export const answerRecord = (params)=>{
  return http.get('/history',{params})
}
export const getTopicList = (params)=>{
  return http.get('/question',{params})
}

export const addTopicList = (params)=>{
  return http.post('/question',params)
}
export const editTopicList = (params)=>{
  return http.put('/question',params)
}

export const deleteTopicList = (idList)=>{
  return http.delete('/question',{params:{idList}})
}